package org.comple.erp.pojo.finance;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName write_off_record
*/
public class WriteOffRecord implements Serializable {
    @NotNull(message="[]不能为空")
    private String record_id;
    /**
    * 核销单id
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private String write_off_id;
    /**
    * 核销单编号
    */
    private String write_off_code;
    /**
    * 制单人
    */
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("")
    @Length(max= 50,message="编码长度不能超过50")
    private String document_creator;
    /**
    * 业务类型
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("")
    @Length(max= 50,message="编码长度不能超过50")
    private String transaction_type;
    /**
    * 核销金额
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private BigDecimal written_off_amount;
    /**
    * 关联核销单据id
    */
    @ApiModelProperty("")
    private String related_id;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Date writeoff_date;
    /**
    * 
    */
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("")
    @Length(max= 50,message="编码长度不能超过50")
    private String company_code;
    /**
    * 
    */
    @Size(max= 200,message="编码长度不能超过200")
    @ApiModelProperty("")
    @Length(max= 200,message="编码长度不能超过200")
    private String remarks;

    public String getRecord_id() {
        return record_id;
    }

    public void setRecord_id(String record_id) {
        this.record_id = record_id;
    }

    public String getWrite_off_id() {
        return write_off_id;
    }

    public void setWrite_off_id(String write_off_id) {
        this.write_off_id = write_off_id;
    }

    public String getWrite_off_code() {
        return write_off_code;
    }

    public void setWrite_off_code(String write_off_code) {
        this.write_off_code = write_off_code;
    }

    public String getDocument_creator() {
        return document_creator;
    }

    public void setDocument_creator(String document_creator) {
        this.document_creator = document_creator;
    }

    public String getTransaction_type() {
        return transaction_type;
    }

    public void setTransaction_type(String transaction_type) {
        this.transaction_type = transaction_type;
    }

    public BigDecimal getWritten_off_amount() {
        return written_off_amount;
    }

    public void setWritten_off_amount(BigDecimal written_off_amount) {
        this.written_off_amount = written_off_amount;
    }

    public String getRelated_id() {
        return related_id;
    }

    public void setRelated_id(String related_id) {
        this.related_id = related_id;
    }

    public Date getWriteoff_date() {
        return writeoff_date;
    }

    public void setWriteoff_date(Date writeoff_date) {
        this.writeoff_date = writeoff_date;
    }

    public String getCompany_code() {
        return company_code;
    }

    public void setCompany_code(String company_code) {
        this.company_code = company_code;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
